﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Process.Application
{
    public class Services2
    {

        public class Rootobject
        {
            public string id { get; set; }
            public string operationid { get; set; }
            public string name { get; set; }
            public string description { get; set; }
            public Node[] nodes { get; set; }
            public Connection[] connections { get; set; }
        }

        public class Node
        {
            public string id { get; set; }
            public string type { get; set; }
            public string name { get; set; }
            public Position position { get; set; }
            public string processId { get; set; }
            public string department { get; set; }
            public string departmentName { get; set; }
            public string approver { get; set; }
            public string approverName { get; set; }
        }

        public class Position
        {
            public float x { get; set; }
            public float y { get; set; }
        }

        public class Connection
        {
            public string id { get; set; }
            public string source { get; set; }
            public string target { get; set; }
            public string type { get; set; }
        }

    }
}
